package mylibrary.hashmap;

import java.util.*;

public class Test {

	public static void main(String[] args) {
		
		Map map = new HashMap();
		
		Key key = new Key(1);
		map.put(key, "abc");
		
		System.out.println(key.hashCode());
		System.out.println(map.get(key));
		
		AnotherKey keyaa = new AnotherKey(1);
		System.out.println(keyaa.hashCode());
		System.out.println(map.get(keyaa));
	}
}
